package com.probox.common.entity.mapper.wechat;

import com.probox.common.entity.domain.wechat.broadcast.WechatBroadcast;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.HashMap;
import java.util.List;

/**
 * 小程序直播间Mapper接口
 *
 * @author usoft
 * @date 2021-07-26
 */
@Mapper
public interface WchatBroadcastMapper extends BaseMapper<WechatBroadcast> {


    WechatBroadcast selectBroadcastByProduct(@Param("product") String product);

    /**
     * 查询字段
     * @param type 字段类型
     * @param value 字典某列值 不传查所有
     * @return
     */
    List<HashMap> selectDictData(@Param("type") String type, @Param("value") String value);
}
